home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Commun⁄Network / Telnet 2.5.src.ThinkC / source / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-16  |  2.6 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2. *    prefs.h
  3. *     by Gaige B. Paulsen
  4. ****************************************************************************
  5. *    Part of NCSA Telnet for the Macintosh                                   *
  6. *                                                                          *
  7. *      Uses    :                                                               *
  8. *      TCP/IP kernel for NCSA Telnet                                       *
  9. *      by Tim Krauskopf                                                    *
  10. *       with Macintosh code by Gaige B. Paulsen                                 *
  11. *                                                                          *
  12. *      National Center for Supercomputing Applications                     *
  13. *      152 Computing Applications Building                                 *
  14. *      605 E. Springfield Ave.                                             *
  15. *      Champaign, IL  61820                                                *
  16. *                                                                          *
  17. *                                                                          *
  18. ****************************************************************************
  19. *
  20. *    Preferences structures and initialization data.
  21. *
  22. *    Included by:
  23. *        prefs.c
  24. *        maclook.c
  25. */
  26.  
  27.  
  28. /*
  29.  * Preferences record for NCSA Telnet 
  30.  */
  31.  
  32. #define PREF_Version        7    /* BYU 2.4.11 - was 5 */    /* BYU 2.4.18 - was 6 */
  33.  
  34. typedef struct {
  35.     short Version;            /* Preferences Record Version Information */
  36.     short CTthresh;            /* Copy Table Threshold */
  37.     short cmdKeys;            /* Command Keys on? */
  38.     short MacBinary;            /* MacBinary on by default? */
  39.     short MacBReset;            /* MacBinary state resets on connect? */
  40.     short optKeys;            /* Enable the Option key translations */
  41.     short dontclose;            /* Closed connections don't go away */
  42.     short mapTilde;            /* Mapping the Tilde, Mapping the Tilde, .... */
  43.     short stag;                /* staggered windows */
  44.     short cursorBlink;        /* BYU 2.4.11 - blink the cursor? */
  45.     short cursorType;        /* BYU 2.4.11 - 0 = block, 1 = underscore, 2 = vertical line */
  46.     short systemKCHR;        /* BYU 2.4.18 */
  47.     } NCSAPrefs;
  48.  
  49. #ifdef PREFMASTER
  50. NCSAPrefs    Prefs = { PREF_Version, 2, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0};    /* BYU 2.4.18 */
  51. int PrefLength[] =
  52.             { 0,                    /* Prefs 0 didn't exist.... */
  53.              10,                    /* Prefs 1 didn't have optKeys */
  54.              12,                    /* Prefs 2 didn't have dontclose */
  55.              14,                    /* Prefs 3 didn't have mapTilde */
  56.              16,    /* BYU 2.4.11 - staggered windows */    
  57.              18,    /* BYU 2.4.11 - ? */
  58.              22,    /* BYU 2.4.11 - +4 bytes: blinking cursor and different cursor types */
  59.              24        /* BYU 2.4.18 - +2 bytes: choice of application or system KCHR */
  60.             };
  61. #else
  62. extern NCSAPrefs Prefs;
  63. extern int PrefLength[];
  64. #endif
  65.  
  66. extern void PromptPrefs
  67.   (
  68.     void
  69.   );
  70.  
  71. extern int GetPrefs
  72.   (
  73.     void
  74.   );
  75.